<extend name="./Application/Admin/View/base.html" />
<block name="title"><title><?php echo C(APP_NAME);?>PC端管理</title></block>
<block name="stylesheets">
<link href="__PUBLIC__/assets/css/select2.css" rel="stylesheet">

</block>
<block name="stylecss">
<style type='text/css'>
    table tr td{
        width: 80%;
    }
    table tr th{
        width: 16%;
        text-align: center;
        vertical-align: middle!important;
    }
</style>
</block>
<block name="smallmenu">
<ul class="breadcrumb">
	<li>
		<i class="ace-icon fa fa-home home-icon"></i>
		<a href="{:U('Index/index')}">主页</a>
	</li>
    <li>
		<a href="{:U('Message/index')}">消息列表</a>
	</li>
	<li class="active">修改消息信息</li>
</ul><!-- /.breadcrumb -->

<!-- #section:basics/content.searchbox -->
<div class="nav-search" id="nav-search"></div><!-- /.nav-search -->
</block>
<block name="content">
<form action="__CONTROLLER__/message_edit" method='post' id='myformedit' class="myformedit" enctype="multipart/form-data">
<input type="hidden" name='message_id' value="{$message_arr.message_id}">
<input type="hidden" name='action' value="message_edit_action">
<div class="row" style="margin-bottom:7px">
    <div class="col-xs-12"><span class="label label-success"><i class="ace-icon fa fa-user bigger-120"></i> 消息信息</span></div>
</div>
<table class="table table-striped table-bordered table-hover" >
    <tr>
        <th>客户端</th>
        <td><?php if ($message_arr['message_client'] == 1): ?>
        <span style="color:green">考生端</span>
        <?php elseif ($message_arr['message_client'] == 2): ?>
        <span style="color:blue">考官端</span>
        <?php endif ?></td>
    </tr>
    <tr>
        <th>消息标题</th>
        <td><input type="text" name='message_title' value="{$message_arr.message_title}" class="col-xs-6 ninputxt">
        <span class="Validform_checktip">必填项</span>
        </td>
    </tr>
    <tr>
        <th>消息内容</th>
        <td><textarea name='message_content' cols='60' rows='8' class="col-xs-6 ninputxt">{$message_arr.message_content}</textarea>
        	
        	<span class="Validform_checktip">必填项</span>
        </td>
    </tr>
    <tr>
        <td colspan="2"><button type="submit" class="btn btn-sm btn-primary">提交</button> <span class="btn btn-sm" onClick="location.href='{:U('Message/index')}'">返回</span></td>
    </tr>
</table>
</form>
</block>
<block name="scripts">
<script src="__PUBLIC__/assets/js/select2.js"></script>
</block>
<block name="jscript">
<script script="text/javascript">
    $(function(){
        $('#menu_message').addClass('active open');
        $('#menu_message_msg').addClass('active');
    });
</script>

</block>